package com.hqyj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 * 
 * </p>
 *
 * @author rock
 * @since 2022-09-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Suppliers implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 供货商
     */
    @TableId(value = "suppliers_id", type = IdType.AUTO)
    private Integer suppliersId;

    private String suppliersName;

    /**
     * 0代表男1代表女
     */
    private Integer suppliersSex;

    private String suppliersTel;

    private String suppliersEmail;

    /**
     * 证件名称
     */
    private String suppliersPidName;

    /**
     * 证件号
     */
    private String suppliersPid;

    /**
     * 签发时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    //从前端传来的日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date suppliersStartTime;

    /**
     * 有效期限
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    //从前端传来的日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    
    private Date suppliersEndTime;

    @TableField(exist = false)
    private Integer page;

    @TableField(exist = false)
    private Integer row;


}
